#define BOOST_TEST_MAIN MyTest
#include <boost/test/included/unit_test.hpp>
#include "cppTestModels/tyrePump/TyrePump.h"
BOOST_AUTO_TEST_CASE( test0 ){
pressure = 7.65723;
n = 0.787132;
temp = 1108.48;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 32.7096;
const double pumpVolume = 11.437;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,36.5005);
BOOST_CHECK_CLOSE(pressure,36.5005, 0.001);
BOOST_WARN_EQUAL(n,1.93515);
BOOST_CHECK_CLOSE(n,1.93515, 0.001);
BOOST_WARN_EQUAL(temp,2149.26);
BOOST_CHECK_CLOSE(temp,2149.26, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test1 ){
pressure = 4.94617;
n = 1.34078;
temp = 402.234;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 31.2996;
const double pumpVolume = 0.140444;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,4.80899);
BOOST_CHECK_CLOSE(pressure,4.80899, 0.001);
BOOST_WARN_EQUAL(n,1.35284);
BOOST_CHECK_CLOSE(n,1.35284, 0.001);
BOOST_WARN_EQUAL(temp,387.592);
BOOST_CHECK_CLOSE(temp,387.592, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test2 ){
pressure = 15.0606;
n = 9.67843;
temp = 403.468;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 74.4291;
const double pumpVolume = 0.0963461;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,14.2025);
BOOST_CHECK_CLOSE(pressure,14.2025, 0.001);
BOOST_WARN_EQUAL(n,9.71606);
BOOST_CHECK_CLOSE(n,9.71606, 0.001);
BOOST_WARN_EQUAL(temp,379.007);
BOOST_CHECK_CLOSE(temp,379.007, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test3 ){
pressure = 13.0049;
n = 0.514899;
temp = 5547.66;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = -4999.0;
const double volume = 63.0516;
const double pumpVolume = 0.2879;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,11.995);
BOOST_CHECK_CLOSE(pressure,11.995, 0.001);
BOOST_WARN_EQUAL(n,0.51725);
BOOST_CHECK_CLOSE(n,0.51725, 0.001);
BOOST_WARN_EQUAL(temp,5093.63);
BOOST_CHECK_CLOSE(temp,5093.63, 0.001);
BOOST_CHECK_EQUAL(counter,-5000);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test4 ){
pressure = 7.27915;
n = 28.1188;
temp = 327.727;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 363.411;
const double pumpVolume = 33.2644;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,11.5949);
BOOST_CHECK_CLOSE(pressure,11.5949, 0.001);
BOOST_WARN_EQUAL(n,36.5686);
BOOST_CHECK_CLOSE(n,36.5686, 0.001);
BOOST_WARN_EQUAL(temp,401.408);
BOOST_CHECK_CLOSE(temp,401.408, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test5 ){
pressure = 10.2678;
n = 16.1667;
temp = 300.995;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 136.042;
const double pumpVolume = 21.4735;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,23.1508);
BOOST_CHECK_CLOSE(pressure,23.1508, 0.001);
BOOST_WARN_EQUAL(n,25.0941);
BOOST_CHECK_CLOSE(n,25.0941, 0.001);
BOOST_WARN_EQUAL(temp,437.216);
BOOST_CHECK_CLOSE(temp,437.216, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test6 ){
pressure = 8.43876;
n = 11.9345;
temp = 305.667;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 124.092;
const double pumpVolume = 32.3485;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,30.6718);
BOOST_CHECK_CLOSE(pressure,30.6718, 0.001);
BOOST_WARN_EQUAL(n,23.9123);
BOOST_CHECK_CLOSE(n,23.9123, 0.001);
BOOST_WARN_EQUAL(temp,554.487);
BOOST_CHECK_CLOSE(temp,554.487, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test7 ){
pressure = 15.1513;
n = 1.21502;
temp = 418.217;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 9.62735;
const double pumpVolume = 0.00331955;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,14.1134);
BOOST_CHECK_CLOSE(pressure,14.1134, 0.001);
BOOST_WARN_EQUAL(n,1.21628);
BOOST_CHECK_CLOSE(n,1.21628, 0.001);
BOOST_WARN_EQUAL(temp,389.167);
BOOST_CHECK_CLOSE(temp,389.167, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test8 ){
pressure = 6.65597;
n = 0.675379;
temp = 415.978;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 12.1165;
const double pumpVolume = 0.00423678;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,6.20662);
BOOST_CHECK_CLOSE(pressure,6.20662, 0.001);
BOOST_WARN_EQUAL(n,0.676088);
BOOST_CHECK_CLOSE(n,0.676088, 0.001);
BOOST_WARN_EQUAL(temp,387.489);
BOOST_CHECK_CLOSE(temp,387.489, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test9 ){
pressure = 834.166;
n = 19.6026;
temp = 339.636;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = -3182.0;
const double volume = 2.29111;
const double pumpVolume = 2.13814;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,2963.69);
BOOST_CHECK_CLOSE(pressure,2963.69, 0.001);
BOOST_WARN_EQUAL(n,37.8965);
BOOST_CHECK_CLOSE(n,37.8965, 0.001);
BOOST_WARN_EQUAL(temp,624.179);
BOOST_CHECK_CLOSE(temp,624.179, 0.001);
BOOST_CHECK_EQUAL(counter,-3183);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test10 ){
pressure = 16.7962;
n = 0.773104;
temp = 3817.96;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 50.446;
const double pumpVolume = 0.317694;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,13.4401);
BOOST_CHECK_CLOSE(pressure,13.4401, 0.001);
BOOST_WARN_EQUAL(n,0.787802);
BOOST_CHECK_CLOSE(n,0.787802, 0.001);
BOOST_WARN_EQUAL(temp,2998.07);
BOOST_CHECK_CLOSE(temp,2998.07, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test11 ){
pressure = 5.64694;
n = 2.12568;
temp = 313.883;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 33.9174;
const double pumpVolume = 7.14724;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,11.5387);
BOOST_CHECK_CLOSE(pressure,11.5387, 0.001);
BOOST_WARN_EQUAL(n,3.11594);
BOOST_CHECK_CLOSE(n,3.11594, 0.001);
BOOST_WARN_EQUAL(temp,437.544);
BOOST_CHECK_CLOSE(temp,437.544, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test12 ){
pressure = 14.1947;
n = 755.546;
temp = 396.881;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 6064.07;
const double pumpVolume = 106.322;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,14.6945);
BOOST_CHECK_CLOSE(pressure,14.6945, 0.001);
BOOST_WARN_EQUAL(n,795.988);
BOOST_CHECK_CLOSE(n,795.988, 0.001);
BOOST_WARN_EQUAL(temp,389.981);
BOOST_CHECK_CLOSE(temp,389.981, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test13 ){
pressure = 15.2088;
n = 1.20531;
temp = 2036.63;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 46.3327;
const double pumpVolume = 0.418831;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,12.6377);
BOOST_CHECK_CLOSE(pressure,12.6377, 0.001);
BOOST_WARN_EQUAL(n,1.2383);
BOOST_CHECK_CLOSE(n,1.2383, 0.001);
BOOST_WARN_EQUAL(temp,1647.26);
BOOST_CHECK_CLOSE(temp,1647.26, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test14 ){
pressure = 14.3909;
n = 2.11081;
temp = 300.58;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 12.6558;
const double pumpVolume = 0.162073;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,false);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,15.087);
BOOST_CHECK_CLOSE(pressure,15.087, 0.001);
BOOST_WARN_EQUAL(n,2.16522);
BOOST_CHECK_CLOSE(n,2.16522, 0.001);
BOOST_WARN_EQUAL(temp,307.2);
BOOST_CHECK_CLOSE(temp,307.2, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,false);
}
BOOST_AUTO_TEST_CASE( test15 ){
pressure = 5.65588;
n = 1.09184;
temp = 3842.32;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 212.923;
const double pumpVolume = 57.8031;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,18.2425);
BOOST_CHECK_CLOSE(pressure,18.2425, 0.001);
BOOST_WARN_EQUAL(n,2.2443);
BOOST_CHECK_CLOSE(n,2.2443, 0.001);
BOOST_WARN_EQUAL(temp,6029.12);
BOOST_CHECK_CLOSE(temp,6029.12, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test16 ){
pressure = 11.4282;
n = 1.62078;
temp = 309.686;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 12.6077;
const double pumpVolume = 0.728984;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,false);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,15.4688);
BOOST_CHECK_CLOSE(pressure,15.4688, 0.001);
BOOST_WARN_EQUAL(n,1.91849);
BOOST_CHECK_CLOSE(n,1.91849, 0.001);
BOOST_WARN_EQUAL(temp,354.131);
BOOST_CHECK_CLOSE(temp,354.131, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,false);
}
BOOST_AUTO_TEST_CASE( test17 ){
pressure = 2.86017;
n = 1.27224;
temp = 307.454;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 4.0;
const double volume = 39.2579;
const double pumpVolume = 3.57244;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,5.34142);
BOOST_CHECK_CLOSE(pressure,5.34142, 0.001);
BOOST_WARN_EQUAL(n,1.80246);
BOOST_CHECK_CLOSE(n,1.80246, 0.001);
BOOST_WARN_EQUAL(temp,405.273);
BOOST_CHECK_CLOSE(temp,405.273, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test18 ){
pressure = 4.34333;
n = 0.568277;
temp = 921.548;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 34.6119;
const double pumpVolume = 12.5282;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,12.8845);
BOOST_CHECK_CLOSE(pressure,12.8845, 0.001);
BOOST_WARN_EQUAL(n,1.05412);
BOOST_CHECK_CLOSE(n,1.05412, 0.001);
BOOST_WARN_EQUAL(temp,1473.78);
BOOST_CHECK_CLOSE(temp,1473.78, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test19 ){
pressure = 3845.83;
n = 926.532;
temp = 6046.85;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 418.185;
const double pumpVolume = 16.9579;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,3723.21);
BOOST_CHECK_CLOSE(pressure,3723.21, 0.001);
BOOST_WARN_EQUAL(n,1043.88);
BOOST_CHECK_CLOSE(n,1043.88, 0.001);
BOOST_WARN_EQUAL(temp,5195.96);
BOOST_CHECK_CLOSE(temp,5195.96, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test20 ){
pressure = 5704.2;
n = 186.571;
temp = 321.014;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 3.014;
const double pumpVolume = 0.0984264;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,false);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,6362.78);
BOOST_CHECK_CLOSE(pressure,6362.78, 0.001);
BOOST_WARN_EQUAL(n,198.956);
BOOST_CHECK_CLOSE(n,198.956, 0.001);
BOOST_WARN_EQUAL(temp,335.787);
BOOST_CHECK_CLOSE(temp,335.787, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,false);
}
BOOST_AUTO_TEST_CASE( test21 ){
pressure = 14.3362;
n = 12.1719;
temp = 394.725;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 96.2032;
const double pumpVolume = 1.47816;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,14.6804);
BOOST_CHECK_CLOSE(pressure,14.6804, 0.001);
BOOST_WARN_EQUAL(n,12.7417);
BOOST_CHECK_CLOSE(n,12.7417, 0.001);
BOOST_WARN_EQUAL(temp,386.129);
BOOST_CHECK_CLOSE(temp,386.129, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test22 ){
pressure = 5500.93;
n = 136.746;
temp = 338.383;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 2.41466;
const double pumpVolume = 0.192164;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,8185.93);
BOOST_CHECK_CLOSE(pressure,8185.93, 0.001);
BOOST_WARN_EQUAL(n,172.061);
BOOST_CHECK_CLOSE(n,172.061, 0.001);
BOOST_WARN_EQUAL(temp,400.196);
BOOST_CHECK_CLOSE(temp,400.196, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test23 ){
pressure = 3265.64;
n = 183.356;
temp = 314.296;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 5.06565;
const double pumpVolume = 1.05032;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,9246.13);
BOOST_CHECK_CLOSE(pressure,9246.13, 0.001);
BOOST_WARN_EQUAL(n,322.69);
BOOST_CHECK_CLOSE(n,322.69, 0.001);
BOOST_WARN_EQUAL(temp,505.639);
BOOST_CHECK_CLOSE(temp,505.639, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test24 ){
pressure = 15.0674;
n = 17.8415;
temp = 405.143;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 137.711;
const double pumpVolume = 0.0538877;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,14.4102);
BOOST_CHECK_CLOSE(pressure,14.4102, 0.001);
BOOST_WARN_EQUAL(n,17.8554);
BOOST_CHECK_CLOSE(n,17.8554, 0.001);
BOOST_WARN_EQUAL(temp,387.167);
BOOST_CHECK_CLOSE(temp,387.167, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test25 ){
pressure = 14.213;
n = 1.66458;
temp = 1367.52;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 45.9751;
const double pumpVolume = 1.29657;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,13.7082);
BOOST_CHECK_CLOSE(pressure,13.7082, 0.001);
BOOST_WARN_EQUAL(n,1.75979);
BOOST_CHECK_CLOSE(n,1.75979, 0.001);
BOOST_WARN_EQUAL(temp,1247.59);
BOOST_CHECK_CLOSE(temp,1247.59, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test26 ){
pressure = 8.43699;
n = 12.9626;
temp = 311.079;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 137.197;
const double pumpVolume = 16.9159;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,15.9466);
BOOST_CHECK_CLOSE(pressure,15.9466, 0.001);
BOOST_WARN_EQUAL(n,18.3727);
BOOST_CHECK_CLOSE(n,18.3727, 0.001);
BOOST_WARN_EQUAL(temp,414.829);
BOOST_CHECK_CLOSE(temp,414.829, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test27 ){
pressure = 7.25529;
n = 3.01474;
temp = 317.289;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 37.846;
const double pumpVolume = 0.0176731;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,false);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,7.1754);
BOOST_CHECK_CLOSE(pressure,7.1754, 0.001);
BOOST_WARN_EQUAL(n,3.01896);
BOOST_CHECK_CLOSE(n,3.01896, 0.001);
BOOST_WARN_EQUAL(temp,313.357);
BOOST_CHECK_CLOSE(temp,313.357, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,false);
}
BOOST_AUTO_TEST_CASE( test28 ){
pressure = 6.308;
n = 0.621984;
temp = 920.413;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 26.052;
const double pumpVolume = 11.2191;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,22.7191);
BOOST_CHECK_CLOSE(pressure,22.7191, 0.001);
BOOST_WARN_EQUAL(n,1.27304);
BOOST_CHECK_CLOSE(n,1.27304, 0.001);
BOOST_WARN_EQUAL(temp,1619.64);
BOOST_CHECK_CLOSE(temp,1619.64, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test29 ){
pressure = 14.357;
n = 10.8094;
temp = 396.722;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 85.7418;
const double pumpVolume = 1.51521;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,14.8751);
BOOST_CHECK_CLOSE(pressure,14.8751, 0.001);
BOOST_WARN_EQUAL(n,11.3927);
BOOST_CHECK_CLOSE(n,11.3927, 0.001);
BOOST_WARN_EQUAL(temp,389.993);
BOOST_CHECK_CLOSE(temp,389.993, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test30 ){
pressure = 14.3043;
n = 3.95726;
temp = 393.456;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 31.246;
const double pumpVolume = 0.589814;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,14.7226);
BOOST_CHECK_CLOSE(pressure,14.7226, 0.001);
BOOST_WARN_EQUAL(n,4.10807);
BOOST_CHECK_CLOSE(n,4.10807, 0.001);
BOOST_WARN_EQUAL(temp,390.096);
BOOST_CHECK_CLOSE(temp,390.096, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test31 ){
pressure = 7.59173;
n = 1.09101;
temp = 331.984;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 13.6954;
const double pumpVolume = 2.24228;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,17.2894);
BOOST_CHECK_CLOSE(pressure,17.2894, 0.001);
BOOST_WARN_EQUAL(n,1.71941);
BOOST_CHECK_CLOSE(n,1.71941, 0.001);
BOOST_WARN_EQUAL(temp,479.738);
BOOST_CHECK_CLOSE(temp,479.738, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test32 ){
pressure = 2.23599;
n = 0.705559;
temp = 310.766;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 28.1492;
const double pumpVolume = 6.30768;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,6.85746);
BOOST_CHECK_CLOSE(pressure,6.85746, 0.001);
BOOST_WARN_EQUAL(n,1.29409);
BOOST_CHECK_CLOSE(n,1.29409, 0.001);
BOOST_WARN_EQUAL(temp,519.632);
BOOST_CHECK_CLOSE(temp,519.632, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test33 ){
pressure = 14.2199;
n = 1.29758;
temp = 393.072;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 10.2963;
const double pumpVolume = 0.202841;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,14.9251);
BOOST_CHECK_CLOSE(pressure,14.9251, 0.001);
BOOST_WARN_EQUAL(n,1.37579);
BOOST_CHECK_CLOSE(n,1.37579, 0.001);
BOOST_WARN_EQUAL(temp,389.112);
BOOST_CHECK_CLOSE(temp,389.112, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test34 ){
pressure = 12.2721;
n = 2.09313;
temp = 309.057;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 4.0;
const double volume = 15.1317;
const double pumpVolume = 0.443467;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,false);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,14.9745);
BOOST_CHECK_CLOSE(pressure,14.9745, 0.001);
BOOST_WARN_EQUAL(n,2.34951);
BOOST_CHECK_CLOSE(n,2.34951, 0.001);
BOOST_WARN_EQUAL(temp,335.963);
BOOST_CHECK_CLOSE(temp,335.963, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,false);
}
BOOST_AUTO_TEST_CASE( test35 ){
pressure = 2265.15;
n = 4917.3;
temp = 315.281;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 196.47;
const double pumpVolume = 41.0323;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,4598.59);
BOOST_CHECK_CLOSE(pressure,4598.59, 0.001);
BOOST_WARN_EQUAL(n,7185.71);
BOOST_CHECK_CLOSE(n,7185.71, 0.001);
BOOST_WARN_EQUAL(temp,438.008);
BOOST_CHECK_CLOSE(temp,438.008, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test36 ){
pressure = 5.12143;
n = 1.58263;
temp = 399.824;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 35.4671;
const double pumpVolume = 0.276728;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,5.01684);
BOOST_CHECK_CLOSE(pressure,5.01684, 0.001);
BOOST_WARN_EQUAL(n,1.61996);
BOOST_CHECK_CLOSE(n,1.61996, 0.001);
BOOST_WARN_EQUAL(temp,382.632);
BOOST_CHECK_CLOSE(temp,382.632, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test37 ){
pressure = 4018.03;
n = 3754.38;
temp = 5239.29;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 1405.3;
const double pumpVolume = 152.363;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,5063.99);
BOOST_CHECK_CLOSE(pressure,5063.99, 0.001);
BOOST_WARN_EQUAL(n,4612.62);
BOOST_CHECK_CLOSE(n,4612.62, 0.001);
BOOST_WARN_EQUAL(temp,5374.57);
BOOST_CHECK_CLOSE(temp,5374.57, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test38 ){
pressure = 15.488;
n = 12.9703;
temp = 415.889;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 99.9773;
const double pumpVolume = 0.0747011;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,14.4752);
BOOST_CHECK_CLOSE(pressure,14.4752, 0.001);
BOOST_WARN_EQUAL(n,12.9994);
BOOST_CHECK_CLOSE(n,12.9994, 0.001);
BOOST_WARN_EQUAL(temp,387.822);
BOOST_CHECK_CLOSE(temp,387.822, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test39 ){
pressure = 12.7094;
n = 5.80755;
temp = 309.651;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 40.6172;
const double pumpVolume = 2.55407;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,false);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,17.6653);
BOOST_CHECK_CLOSE(pressure,17.6653, 0.001);
BOOST_WARN_EQUAL(n,6.97344);
BOOST_CHECK_CLOSE(n,6.97344, 0.001);
BOOST_WARN_EQUAL(temp,358.438);
BOOST_CHECK_CLOSE(temp,358.438, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,false);
}
BOOST_AUTO_TEST_CASE( test40 ){
pressure = 81.0785;
n = 5.22413;
temp = 400.541;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 7.40841;
const double pumpVolume = 0.0530479;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,79.6742);
BOOST_CHECK_CLOSE(pressure,79.6742, 0.001);
BOOST_WARN_EQUAL(n,5.29922);
BOOST_CHECK_CLOSE(n,5.29922, 0.001);
BOOST_WARN_EQUAL(temp,388.027);
BOOST_CHECK_CLOSE(temp,388.027, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test41 ){
pressure = 405.072;
n = 35.6789;
temp = 301.837;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 7.63171;
const double pumpVolume = 0.164363;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,false);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,454.742);
BOOST_CHECK_CLOSE(pressure,454.742, 0.001);
BOOST_WARN_EQUAL(n,38.0341);
BOOST_CHECK_CLOSE(n,38.0341, 0.001);
BOOST_WARN_EQUAL(temp,317.865);
BOOST_CHECK_CLOSE(temp,317.865, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,false);
}
BOOST_AUTO_TEST_CASE( test42 ){
pressure = 5699.11;
n = 284.602;
temp = 408.698;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 5.85871;
const double pumpVolume = 0.0279122;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,5465.69);
BOOST_CHECK_CLOSE(pressure,5465.69, 0.001);
BOOST_WARN_EQUAL(n,288.689);
BOOST_CHECK_CLOSE(n,288.689, 0.001);
BOOST_WARN_EQUAL(temp,386.41);
BOOST_CHECK_CLOSE(temp,386.41, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test43 ){
pressure = 8.84301;
n = 107.482;
temp = 308.473;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 1076.27;
const double pumpVolume = 221.106;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,17.812);
BOOST_CHECK_CLOSE(pressure,17.812, 0.001);
BOOST_WARN_EQUAL(n,156.18);
BOOST_CHECK_CLOSE(n,156.18, 0.001);
BOOST_WARN_EQUAL(temp,427.602);
BOOST_CHECK_CLOSE(temp,427.602, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test44 ){
pressure = 8.6572;
n = 0.728023;
temp = 853.224;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 20.5968;
const double pumpVolume = 1.88698;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,12.0773);
BOOST_CHECK_CLOSE(pressure,12.0773, 0.001);
BOOST_WARN_EQUAL(n,0.947009);
BOOST_CHECK_CLOSE(n,0.947009, 0.001);
BOOST_WARN_EQUAL(temp,915.057);
BOOST_CHECK_CLOSE(temp,915.057, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test45 ){
pressure = 8.40614;
n = 2.48059;
temp = 328.639;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = -4968.0;
const double volume = 27.8385;
const double pumpVolume = 1.87116;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,false);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,9.44826);
BOOST_CHECK_CLOSE(pressure,9.44826, 0.001);
BOOST_WARN_EQUAL(n,2.64732);
BOOST_CHECK_CLOSE(n,2.64732, 0.001);
BOOST_WARN_EQUAL(temp,346.116);
BOOST_CHECK_CLOSE(temp,346.116, 0.001);
BOOST_CHECK_EQUAL(counter,-4969);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,false);
}
BOOST_AUTO_TEST_CASE( test46 ){
pressure = 10.6066;
n = 958.618;
temp = 317.227;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 2.0;
const double volume = 8230.15;
const double pumpVolume = 229.962;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,false);
BOOST_CHECK_EQUAL(tyreBursted,false);
BOOST_WARN_EQUAL(pressure,11.6513);
BOOST_CHECK_CLOSE(pressure,11.6513, 0.001);
BOOST_WARN_EQUAL(n,1012.94);
BOOST_CHECK_CLOSE(n,1012.94, 0.001);
BOOST_WARN_EQUAL(temp,329.785);
BOOST_CHECK_CLOSE(temp,329.785, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,false);
BOOST_CHECK_EQUAL(varMelted,false);
}
BOOST_AUTO_TEST_CASE( test47 ){
pressure = 87.2967;
n = 2.61215;
temp = 403.209;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = 3.0;
const double volume = 3.46338;
const double pumpVolume = 0.00953919;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,true);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,83.007);
BOOST_CHECK_CLOSE(pressure,83.007, 0.001);
BOOST_WARN_EQUAL(n,2.63379);
BOOST_CHECK_CLOSE(n,2.63379, 0.001);
BOOST_WARN_EQUAL(temp,380.245);
BOOST_CHECK_CLOSE(temp,380.245, 0.001);
BOOST_CHECK_EQUAL(counter,0);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,true);
}
BOOST_AUTO_TEST_CASE( test48 ){
pressure = 19.1708;
n = 0.662998;
temp = 309.72;
counter = 1.0;
varBursted = 1.0;
varMelted = 1.0;
const int pumps = -6443.0;
const double volume = 3.07475;
const double pumpVolume = 0.531581;
bool tyreMelted;
bool tyreBursted;
pumpExtended(&pumps, &volume, &pumpVolume, &tyreMelted, &tyreBursted);
BOOST_CHECK_EQUAL(tyreMelted,false);
BOOST_CHECK_EQUAL(tyreBursted,true);
BOOST_WARN_EQUAL(pressure,25.955);
BOOST_CHECK_CLOSE(pressure,25.955, 0.001);
BOOST_WARN_EQUAL(n,0.777621);
BOOST_CHECK_CLOSE(n,0.777621, 0.001);
BOOST_WARN_EQUAL(temp,357.514);
BOOST_CHECK_CLOSE(temp,357.514, 0.001);
BOOST_CHECK_EQUAL(counter,-6444);
BOOST_CHECK_EQUAL(varBursted,true);
BOOST_CHECK_EQUAL(varMelted,false);
}
